!!! XML strict
!!!

%html
  %head
    - if @page_title
      %title= @page_title
    - else
      %title= "share-dkp"
    = stylesheet_link_tag("site", :media => "all")
    = javascript_include_tag(:defaults)
  %body{ 'onload' => "Form.focusFirstElement('main')" }
    #side
      %p= link_to("Characters", :controller => "characters")
      %p= link_to("Raids", :controller => "raids")
      %p= link_to("Items", :controller => "items")
      - if is_officer?
        %p= link_to("Roles", :controller => "roles")
        %p= link_to("Zones", :controller => "zones")
      - if is_superadmin?
        %p= link_to("Users", :controller => "users")
      %br
      - if is_member?
        %p= link_to("Profile", :controller => "users", :action => :edit, :id => @logged_in_user.id)
        - form_tag({ :controller => "users", :action => :logout }, { :method => :put }) do
          %p= submit_tag("Logout")
      - else
        %p= link_to("Login", :controller => "users", :action => "login")
    #main
      - if is_officer?
        %h1.adminPageDescription= @page_description
      - else
        %h1.pageDescription= @page_description
      - if flash[:notice]
        #notice= flash[:notice]
      #content
        = yield
    - if defined?(@itemdisplay)
      #itemDisplay
        = @itemdisplay
